2027 Method
Changes 0
M

UpdaterRegistry.AddTrigger

Description:
Adds a trigger to an updater with specified set of elements and ChangeType
Overloads (3):
AddTrigger(UpdaterId,Document,ICollection[ElementId],ChangeType)
public static void AddTrigger(
	UpdaterId id,
	Document document,
	ICollection<ElementId> elements,
	ChangeType change
)
  • id
    Id of updater that trigger should be added to
  • document
    Document that elements in 'elements' are contained in
  • ICollection<ElementId>
    elements
    Set of elements which define this trigger
  • change
    ChangeType associated with this trigger
  • A non-optional argument was null
  • updater's owner AddIn does not match the currently active AddIn -or- id does not correspond to any registered Updaters -or- AddTrigger called while executing an updater.